#ifndef __LOGIC_EEPROM_H
#define __LOGIC_EEPROM_H

#include "sys.h" 

#define EEPROM_ADDRESS_HEADER						0x0000 //8 bytes
#define EEPROM_ADDRESS_RDBTubeFile_CHECKSUM			0x0014 //2 bytes
#define EEPROM_ADDRESS_RDBTubeFile_DATA				0x0020 //22 bytes
#define EEPROM_ADDRESS_RDBTubeFile_DATA_END			0x0035
#define EEPROM_ADDRESS_RDBTubeFile_CHECKSUM_BACKUP	0x2044
#define EEPROM_ADDRESS_RDBTubeFile_DATA_BACKUP		0x2050
#define	EEPROM_RDBTubeFile_DATA_SIZE (EEPROM_ADDRESS_RDBTubeFile_DATA_END-EEPROM_ADDRESS_RDBTubeFile_DATA+1)


u8 logic_Eeprom_HeaderInit(void);
u8 logic_Eeprom_HeaderClear(void);
u8 logic_Eeprom_HeaderIsInit(void);

u8 logic_LoadRDBTubeFileFromEeprom(void);
u8 logic_SaveRDBTubeFileToEeprom(void);

#endif  // end of STANDBY_H definition


